<template>
	<view>
		<view class="cu-timeline margin-top">
			<view class="cu-time">物流信息</view>
			<view class="cu-item " v-for="(item,index) in express" :key="index">
				<view class="bg-cyan content">
					<text>{{item.time}} </text> 
					<view>{{item.context}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {getLogisticsDetail} from '@/api/order/orderApi.js'
	export default {
		data() {
			return {
				orderId:'',
				shopId:'',
				express:[]
			}
		},
		onLoad(options) {
			this.orderId = options.orderId;
			this.shopId = options.shopId;
			this._loadExpress();
		},
		methods: {
			_loadExpress:function(){
				let _that =this;
				getLogisticsDetail({
					page:1,
					row:100,
					orderId:this.orderId,
					shopId:this.shopId
				}).then((_data)=>{
					_that.express = _data;
				})
			}
		}
	}
</script>

<style>

</style>
